package cn.gson.springmvc.commons;

import org.springframework.core.convert.converter.Converter;
import org.springframework.core.convert.support.DefaultConversionService;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class ListConverter implements Converter<String, List> {
    @Override
    public List convert(String s) {
       // List<String> st=new ArrayList<String>(Arrays.asList(s.split(",")));
        return Arrays.asList(s.split(","));
    }
}
